package com.brillilab.domain.po.elsearch;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
public class EsGlobalSampleAttr {

    public EsGlobalSampleAttr(Long sampleTemplateId,String attrValue,Long kitId) {
        this.sampleTemplateId=sampleTemplateId;
        this.attrValue=attrValue;
        this.kitId = kitId;
    }

    /**样品模版ID*/
	@Field(type=FieldType.Long)
	private Long sampleTemplateId;

	private Long kitId;

    /**属性值*/
    @Field(type=FieldType.Text,analyzer="my_analyzer")
    private String attrValue;
}
